<?php

namespace app\company\controller;

use app\common\controller\CompanyController;
use app\company\model\MessageNotificationType as MessageNotificationTypeModel;
use think\App;

class MessageNotificationType extends CompanyController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model = new MessageNotificationTypeModel();
    }

    /**
     * 消息通知分类列表
     *
     * @return \think\Response
     */
    public function index()
    {
       $types = $this->model->field('id, name')->order('create_time', 'desc')->select();

       return $this->success($types);
    }
}
